package com.shijichaoxing.service;

import com.shijichaoxing.entity.Admin;
import com.shijichaoxing.utils.PageParam;

/**
 * @author zj
 */
public interface AdminService {
    boolean login(Admin admin);

    boolean addAdmin(Admin admin);

    boolean updateAdmin(Admin admin);

    Admin findAdminById(Integer id);

    void findAdminByPage(PageParam<Admin> pageParam, String indexName, boolean isAsc);

    boolean deleteById(Integer id);
}